package router

import (
	"fig-doc/handler"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.POST("/ArtAdd", handler.ArtAdd)
	r.GET("/ArtList", handler.ArtList)
	r.GET("/ArtDetail", handler.ArtDetail)
	r.POST("/upload", handler.Upload)
	return r
}
